package SNSConfig
{
	public class SNSConfig
	{
		[Embed(source="E:/Soft/xampp/htdocs/CGKGame/compile/media/json/media.json", mimeType="application/octet-stream" )]
		private var media_json:Class;
		
		[Embed(source="E:/Soft/xampp/htdocs/CGKGame/compile/media/json/penguins.json", mimeType="application/octet-stream" )]
		private var penguins_json:Class;
		
		[Embed(source="E:/Soft/xampp/htdocs/CGKGame/compile/media/json/system.json", mimeType="application/octet-stream" )]
		private var system_json:Class;
		
		public function SNSConfig(){}
		
		//=========================================================
		private var dataTable:Object	=	new Object();
		
		public function getMetalist():Array
		{
			return ["media.json", "penguins.json", "system.json"];
		}
		
		public function getData( name:String ):String
		{
			if( ! dataTable.hasOwnProperty( name ) )
			{
				switch( name )
				{
					case "media.json":
						dataTable[name]	=	new media_json;
						break;
					
					case "penguins.json":
						dataTable[name]	=	new penguins_json;
						break;	
					
					case "system.json":
						dataTable[name] = new system_json;
						break;
				}
			}
			
			return dataTable[name];
		}
	}
}